"""
应用配置文件
"""
import os
from datetime import timedelta

class Config:
    # 数据库配置（根据实际修改）
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://Leslie:123456@120.27.139.33:3306/mjseed?charset=utf8mb4'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    
    # 安全配置
    SECRET_KEY = os.urandom(24)
    JWT_EXPIRATION = timedelta(hours=1)
    
    # 测试模式配置
    TESTING_MODE = True